#!/bin/bash
Server_IP=10.47.74.199

./tc &

# 清理进程
killall iperf3
sleep 3
# 启动server
index=0
while [ ${index} -lt 64 ]
do
	numactl -N 8-15 -m 8-15 iperf3 -s -B ${Server_IP} -p 100${index}  &
	let index=${index}+1
done
# 等待server启动
sleep 3
counter=0
while [ 1 -eq 1 ]
do
        echo "fio $(date) counter=${counter}"
	let index=0
 	while [ ${index} -lt 63 ]
	do
		numactl -N 8-15 -m 8-15 iperf3 -c ${Server_IP} -p 100${index} &
		let index=${index}+1
	done
	numactl -N 8-15 -m 8-15 iperf3 -c ${Server_IP} -p 100${index} 
        let counter=${counter}+1
done
